package com.example.teachingSystem.service;

import com.example.teachingSystem.pojo.entity.SysRoleMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingSystem.pojo.form.role.RoleMenuForm;
import com.example.teachingSystem.utils.result.Result;

import java.util.List;

/**
* @author 86147
* @description 针对表【sys_role_menu(角色和菜单关联表)】的数据库操作Service
* @createDate 2023-11-27 21:29:48
*/
public interface SysRoleMenuService extends IService<SysRoleMenu> {
    Result<String> addRoleMenus(RoleMenuForm roleMenuForm);

    Result<String> deleteRoleMenus(RoleMenuForm roleMenuForm);

    Result<List<Long>> getMenuOptionById(Long roleId);

    void deleteRoleMenuByMenuId(Long menuId);
}
